package com.example.frn.service;

import com.example.frn.dto.NewsPageDto;
import com.example.frn.dto.PageDTO;
import com.example.frn.entity.Banner;
import com.example.frn.entity.News;
import com.github.pagehelper.PageInfo;

public interface NewsService {
    boolean save(News news);
    boolean updateById(News news);
    boolean removeById(Integer id);
    News getById(Integer id);
    PageInfo<News> page(NewsPageDto dto);
}
